<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/7/17
  Time: 15:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <script type="text/javascript" src="JS/jquery-1.8.3.js"></script>
    <script src="CSS/bootstrap.min.js"></script>
    <link rel="stylesheet" href="CSS/bootstrap.css">
</head>
<body>

<table class="table table-hover">
    <tr>
        <th>编号</th>
        <th>好友请求</th>
        <th>操作</th>
    </tr>
    <c:if test="${empty FriendMessageList}">
        <tr>
            <td style="color: red">${requestScope.result}</td>
        </tr>
    </c:if>
    <c:forEach items="${requestScope.FriendMessageList}" var="u" varStatus="s">
        <tr>
            <td>${u.fuId}</td>
            <td>${u.fuName} 请求加你为好友!!</td>
            <td>
                <a href="EnsureAddFriendServlet?fuId=${u.fuId}&fuName=${u.fuName}">添加</a>
                <a href="DeleteFriendMessageServlet?fuId=${u.fuId}&fuName=${u.fuName}">拒绝</a>
            </td>
        </tr>
    </c:forEach>
</table>

</body>
</html>
